package com.uzai.console.dto.cms.activity;

import com.uzai.console.dto.QueryParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author liuqi
 * @date 2021年08月26日 14:31
 */
@ApiModel("CMS活动明细列表查询参数")
public class CmsActivityDetailQuery extends QueryParam {

    @ApiModelProperty("活动ID,查询所有活动则不需要该参数")
    private Long activityId;

    @ApiModelProperty("活动展示位置(PicWord-轮播图文；MarketNavigate-营销导航；PersonalPicWord-个人中心图文；PersonalGrid-个人中心八宫格；MostOne-优惠头条)")
    private String location;

    @ApiModelProperty("来源(0-该运营商的自主活动和官方活动; 1-自主活动；2-官方活动;")
    private Integer source;

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Integer getSource() {
        if(source == null){
            source = 0; //默认查询运营商自主活动和官方活动
        }
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }
}
